package com.zhiyou100.crm.dao;

import com.zhiyou100.crm.pojo.Department;

import java.io.IOException;
import java.util.List;

public interface DepartmentDao {
    public abstract List<Department> queryAll() throws IOException;
    public abstract int addDepartment(Department department) throws IOException;

    public abstract int deleteById(int departmentId) throws IOException;

    int updateDepartment(Department department) throws IOException;
}
